package com.gzp.config;

import javax.jms.Topic;

import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 主题配置类
 * 
 * @author Administrator
 *
 */
@Configuration
public class TopicConfig {

	@Value("${mytopic}")
	private String mytopic;

	@Bean
	public Topic topic() {
		return new ActiveMQTopic(mytopic);
	}
}
